using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;


public struct Permitidos
{
    public bool Insertar;
    public bool Modificar;
    public bool Eliminar;
    public bool Aceptar;
    public bool Cancelar;
    public bool Campos;
}


/// <summary>
/// Summary description for AtributosCtrl
/// </summary>
public class AtributosCtrl
{

    Permitidos permitidos;

    public Permitidos Modificando
    {
        get
        {
            this.permitidos.Insertar = false;
            this.permitidos.Modificar = false;
            this.permitidos.Eliminar = false;
            this.permitidos.Aceptar = true;
            this.permitidos.Cancelar = true;
            this.permitidos.Campos = true;
            
            return this.permitidos;
        }
    }


    public Permitidos Insertando
    {
        get
        {
            this.permitidos.Insertar = false;
            this.permitidos.Modificar = false;
            this.permitidos.Eliminar = false;
            this.permitidos.Aceptar = true;
            this.permitidos.Cancelar = true;
            this.permitidos.Campos = true;

            return this.permitidos;
        }

    }

    public Permitidos Consultado
    {
        get
        {
            this.permitidos.Insertar = true;
            this.permitidos.Modificar = true;
            this.permitidos.Eliminar = true;
            this.permitidos.Aceptar = false;
            this.permitidos.Cancelar = false;
            this.permitidos.Campos = false;

            return this.permitidos;
        }
    }
    
    public Permitidos Defecto
    {
        get
        {
            this.permitidos.Insertar = true;
            this.permitidos.Modificar = false;
            this.permitidos.Eliminar = false;
            this.permitidos.Aceptar = false;
            this.permitidos.Cancelar = false;
            this.permitidos.Campos = false;

            return this.permitidos;
        }
    }

    public Permitidos DefectoContactosInactivo
    {
        get
        {
            this.permitidos.Insertar = false;
            this.permitidos.Modificar = false;
            this.permitidos.Eliminar = false;
            this.permitidos.Aceptar = false;
            this.permitidos.Cancelar = false;
            this.permitidos.Campos = false;

            return this.permitidos;
        }
    }

    public Permitidos DefectoContactosActivo
    {
        get
        {
            this.permitidos.Insertar = true;
            this.permitidos.Modificar = false;
            this.permitidos.Eliminar = false;
            this.permitidos.Aceptar = false;
            this.permitidos.Cancelar = false;
            this.permitidos.Campos = false;

            return this.permitidos;
        }
    }

    public Permitidos ModificandoCuentas
    {
        get
        {
            this.permitidos.Insertar = false;
            this.permitidos.Modificar = true;
            this.permitidos.Eliminar = false;
            this.permitidos.Aceptar = false;
            this.permitidos.Cancelar = false;
            this.permitidos.Campos = false;

            return this.permitidos;
        }
    }

    
    public AtributosCtrl()
	{
	}
}
